﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using PandorasBox;


namespace TestProject {


  /// <summary>
  ///This is a test class for Window1Test and is intended
  ///to contain all Window1Test Unit Tests
  ///</summary>
  [TestClass]
  public class Window1Test {
    /// <summary>
    ///Gets or sets the test context which provides
    ///information about and functionality for the current test run.
    ///</summary>
    public TestContext TestContext { get; set; }

    #region Additional test attributes
    // 
    //You can use the following additional attributes as you write your tests:
    //
    //Use ClassInitialize to run code before running the first test in the class
    //[ClassInitialize()]
    //public static void MyClassInitialize(TestContext testContext)
    //{
    //}
    //
    //Use ClassCleanup to run code after all tests in a class have run
    //[ClassCleanup()]
    //public static void MyClassCleanup()
    //{
    //}
    //
    //Use TestInitialize to run code before running each test
    //[TestInitialize()]
    //public void MyTestInitialize()
    //{
    //}
    //
    //Use TestCleanup to run code after each test has run
    //[TestCleanup()]
    //public void MyTestCleanup()
    //{
    //}
    //
    #endregion


    /// <summary>
    ///A test for uiZoomSlider_MouseRightButtonDown
    ///</summary>
    [TestMethod]
    [DeploymentItem( "Pandoras Box.exe" )]
    public void uiZoomSlider_MouseRightButtonDownTest() {
      var target = new Window1_Accessor();
      target.uiZoomSlider_MouseRightButtonDown( null, null );
      Assert.AreEqual( 1.0, target.uiZoomSlider.Value, "The zoom slider was not reset to 100%." );
    }

    /// <summary>
    ///A test for tcSub_DockPanel_Loaded
    ///</summary>
    [TestMethod()]
    [DeploymentItem( "Pandoras Box.exe" )]
    public void tcSub_DockPanel_LoadedTest() {
      var target = new Window1_Accessor();
      target.tcSub_DockPanel_Loaded( null, null );
      Assert.AreNotEqual( "tiArt", target.tiArt.Header, "The header of the tabitem was not localized." );
      Assert.AreNotEqual( "tiMap", target.tiMap.Header, "The header of the tabitem was not localized." );
      Assert.AreNotEqual( "tiProps", target.tiProps.Header, "The header of the tabitem was not localized." );
      Assert.AreNotEqual( "tiCustom", target.tiCustom.Header, "The header of the tabitem was not localized." );
    }

    /// <summary>
    ///A test for tcMain_DockPanel_Loaded
    ///</summary>
    [TestMethod()]
    [DeploymentItem( "Pandoras Box.exe" )]
    public void tcMain_DockPanel_LoadedTest() {
      var target = new Window1_Accessor();
      target.tcMain_DockPanel_Loaded( null, null );
      Assert.AreNotEqual( "tiGeneral", target.tiGeneral.Header, "The header of the tabitem was not localized." );
    }
  }
}
